<?php
class PlantFreeSpeedUpAction extends SzAbstractAction
{
    protected $paramTypes = array(
        SzAbstractAction::TYPE_INT,
        SzAbstractAction::TYPE_STRING,
        SzAbstractAction::TYPE_INT,
    );

    /**
     * plant free speedup.
     *
     * @param int $userId
     * @param string $gridId
     * @param int $reqTime
     * @return SzResponse
     */
    public function execute($userId, $gridId, $reqTime)
    {
        return $this->buildResponse(
            PlantService::get()->freeSpeedUp($userId, $gridId, $reqTime)
        );
    }
}